.t-ag-grid {
  @bg-color: var(--ag-range-selection-background-color-1) !important;
  @external-border-color: var(--ag-range-selection-border-color) !important;
  @internal-border-color: #bbb !important;
  @text-color: #eee !important;

  .ag-cell-range-selected-1:not(.ag-cell-focus),
  .ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {
    color: @text-color;
    background-color: #3165d0;
  }
  // 边框
  .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell) {
    @direction: {
      top: unset;
      bottom: unset;
      left: unset;
      right: unset;
    };
    each(@direction, {
      &.ag-cell-range-@{key} {
        border-@{key}-color: @external-border-color;
      }
    })

    &:not(.ag-cell-range-bottom) {
      border-bottom-color: @internal-border-color;
    }
    &:not(.ag-cell-range-right) {
      border-right-color: @internal-border-color;
    }
  }
  .ag-cell-range-single-cell {
    border-color: @external-border-color;
  }
  --ag-selected-row-background-color: rgba(250, 185, 111, 0.5);
}